.class public Lcom/htc/android/footprints/view/DetailView;
.super Landroid/widget/LinearLayout;
.source "DetailView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field private static final TAG:Ljava/lang/String; = "DetailView"


# instance fields
.field private addressText:Landroid/widget/TextView;

.field private buttonAddress:Landroid/widget/ImageView;

.field private buttonLocation:Landroid/widget/ImageView;

.field private buttonPhone:Landroid/widget/ImageView;

.field private buttonWeb:Landroid/widget/ImageView;

.field private categoryIcon:Landroid/widget/ImageView;

.field private categroyData:Landroid/widget/TextView;

.field private connectionFailedText:Landroid/widget/TextView;

.field df:Ljava/text/DateFormat;

.field df_time:Ljava/text/DateFormat;

.field private emptyFrame:Landroid/view/ViewGroup;

.field private infoFrame:Landroid/view/ViewGroup;

.field private latText:Landroid/widget/TextView;

.field private layout:Landroid/view/ViewGroup;

.field private lonText:Landroid/widget/TextView;

.field private mAddrDiv:Landroid/widget/ImageView;

.field private mAddressPanel:Landroid/view/View;

.field private mBalloonView:Landroid/widget/ImageView;

.field private mCategory:Lcom/htc/android/footprints/vo/Category;

.field private mContext:Landroid/content/Context;

.field private mFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field private mLocationDiv:Landroid/widget/ImageView;

.field private mLocationPanel:Landroid/view/View;

.field private mMap:Lcom/google/android/maps/MapView;

.field private mMapDiv:Landroid/widget/ImageView;

.field private mMapFrame:Landroid/widget/LinearLayout;

.field private mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

.field private mMediaDiv:Landroid/widget/ImageView;

.field private mPhoneDiv:Landroid/widget/ImageView;

.field private mPhonePanel:Landroid/view/View;

.field private mPicture:Landroid/graphics/Bitmap;

.field private mTextBoxDiv:Landroid/widget/ImageView;

.field private mWebDiv:Landroid/widget/ImageView;

.field private mWebPanel:Landroid/view/View;

.field private mapButton:Landroid/widget/ImageButton;

.field mapParams:Landroid/widget/LinearLayout$LayoutParams;

.field private mapTouchDelegate:Landroid/view/TouchDelegate;

.field private phoneText:Landroid/widget/TextView;

.field private photoView:Landroid/widget/ImageView;

.field private rating:Landroid/widget/RatingBar;

.field private scrollView:Lcom/htc/android/footprints/view/HorizontalScrollView;

.field private textBox:Landroid/widget/TextView;

.field private textCreateDate:Landroid/widget/TextView;

.field private textCreateTime:Landroid/widget/TextView;

.field private textLatitude:Ljava/lang/String;

.field private textLongitude:Ljava/lang/String;

.field private textNote:Landroid/widget/TextView;

.field private titleText:Landroid/widget/TextView;

.field private webText:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    const-string v1, ""

    .line 97
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 81
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    .line 86
    const-string v0, ""

    iput-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->textLatitude:Ljava/lang/String;

    .line 87
    const-string v0, ""

    iput-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->textLongitude:Ljava/lang/String;

    .line 98
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    .line 99
    invoke-direct {p0}, Lcom/htc/android/footprints/view/DetailView;->initView()V

    .line 100
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2
    .parameter "context"
    .parameter "attrs"

    .prologue
    const-string v1, ""

    .line 103
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 81
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    .line 86
    const-string v0, ""

    iput-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->textLatitude:Ljava/lang/String;

    .line 87
    const-string v0, ""

    iput-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->textLongitude:Ljava/lang/String;

    .line 104
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    .line 105
    invoke-direct {p0}, Lcom/htc/android/footprints/view/DetailView;->initView()V

    .line 106
    return-void
.end method

.method private initView()V
    .locals 9

    .prologue
    .line 109
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    .line 111
    .local v2, TS:J
    const/4 v5, 0x1

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->setOrientation(I)V

    .line 113
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->getContext()Landroid/content/Context;

    move-result-object v5

    const-string v6, "layout_inflater"

    invoke-virtual {v5, v6}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/view/LayoutInflater;

    .line 116
    .local v4, inflater:Landroid/view/LayoutInflater;
    const v5, 0x7f030009

    const/4 v6, 0x0

    invoke-virtual {v4, v5, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/view/ViewGroup;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->layout:Landroid/view/ViewGroup;

    .line 118
    iget-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->layout:Landroid/view/ViewGroup;

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->addView(Landroid/view/View;)V

    .line 120
    const v5, 0x7f0c0028

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lcom/htc/android/footprints/view/HorizontalScrollView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->scrollView:Lcom/htc/android/footprints/view/HorizontalScrollView;

    .line 121
    const v5, 0x7f0c001c

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->titleText:Landroid/widget/TextView;

    .line 122
    iget-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->titleText:Landroid/widget/TextView;

    const/4 v6, 0x0

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setClickable(Z)V

    .line 123
    const v5, 0x7f0c002f

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->categroyData:Landroid/widget/TextView;

    .line 124
    const v5, 0x7f0c0031

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->textCreateDate:Landroid/widget/TextView;

    .line 125
    const v5, 0x7f0c0032

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->textCreateTime:Landroid/widget/TextView;

    .line 126
    const v5, 0x7f0c002e

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->categoryIcon:Landroid/widget/ImageView;

    .line 127
    const v5, 0x7f0c0025

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->addressText:Landroid/widget/TextView;

    .line 128
    const v5, 0x7f0c0035

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->buttonAddress:Landroid/widget/ImageView;

    .line 129
    const v5, 0x7f0c0039

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->phoneText:Landroid/widget/TextView;

    .line 130
    const v5, 0x7f0c003d

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->webText:Landroid/widget/TextView;

    .line 131
    const v5, 0x7f0c003c

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->buttonWeb:Landroid/widget/ImageView;

    .line 132
    const v5, 0x7f0c0038

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->buttonPhone:Landroid/widget/ImageView;

    .line 133
    const v5, 0x7f0c0042

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->buttonLocation:Landroid/widget/ImageView;

    .line 134
    const v5, 0x7f0c002c

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/RatingBar;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->rating:Landroid/widget/RatingBar;

    .line 135
    const v5, 0x7f0c003f

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    .line 136
    const v5, 0x7f0c0043

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->latText:Landroid/widget/TextView;

    .line 137
    const v5, 0x7f0c0044

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->lonText:Landroid/widget/TextView;

    .line 138
    const v5, 0x7f0c0046

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mMapFrame:Landroid/widget/LinearLayout;

    .line 139
    const v5, 0x7f0c0034

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mAddressPanel:Landroid/view/View;

    .line 140
    const v5, 0x7f0c0037

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mPhonePanel:Landroid/view/View;

    .line 141
    const v5, 0x7f0c003b

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mWebPanel:Landroid/view/View;

    .line 142
    const v5, 0x7f0c0041

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mLocationPanel:Landroid/view/View;

    .line 143
    const v5, 0x7f0c0040

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaDiv:Landroid/widget/ImageView;

    .line 144
    const v5, 0x7f0c003a

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mPhoneDiv:Landroid/widget/ImageView;

    .line 145
    const v5, 0x7f0c003e

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mWebDiv:Landroid/widget/ImageView;

    .line 146
    const v5, 0x7f0c0036

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mAddrDiv:Landroid/widget/ImageView;

    .line 147
    const v5, 0x7f0c0048

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->textBox:Landroid/widget/TextView;

    .line 148
    const v5, 0x7f0c002a

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->photoView:Landroid/widget/ImageView;

    .line 149
    const v5, 0x7f0c0033

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/view/ViewGroup;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->infoFrame:Landroid/view/ViewGroup;

    .line 150
    const v5, 0x7f0c0049

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/view/ViewGroup;

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->emptyFrame:Landroid/view/ViewGroup;

    .line 152
    iget-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    invoke-static {v5}, Landroid/text/format/DateFormat;->getDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v5

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->df:Ljava/text/DateFormat;

    .line 153
    iget-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    invoke-static {v5}, Landroid/text/format/DateFormat;->getTimeFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v5

    iput-object v5, p0, Lcom/htc/android/footprints/view/DetailView;->df_time:Ljava/text/DateFormat;

    .line 155
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->afterInitView()V

    .line 157
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 158
    .local v0, TE:J
    const-string v5, "DetailView"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "initView time = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    sub-long v7, v0, v2

    invoke-virtual {v6, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 159
    return-void
.end method

.method private insertMap(Lcom/google/android/maps/MapView;)V
    .locals 12
    .parameter "map"

    .prologue
    const/16 v11, 0x28

    const/16 v10, 0xa

    const/4 v9, 0x5

    const/4 v8, 0x0

    .line 304
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    .line 305
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->removeAllViews()V

    .line 308
    iget-object v6, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    iget-object v7, p0, Lcom/htc/android/footprints/view/DetailView;->mapButton:Landroid/widget/ImageButton;

    new-instance v0, Lcom/google/android/maps/MapView$LayoutParams;

    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f090011

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f090010

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    const/16 v3, 0x127

    const/16 v4, 0x128

    const/16 v5, 0x55

    invoke-direct/range {v0 .. v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IIIII)V

    invoke-virtual {v6, v7, v0}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 315
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mBalloonView:Landroid/widget/ImageView;

    new-instance v2, Lcom/google/android/maps/MapView$LayoutParams;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v3}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v3

    const/16 v4, 0x51

    invoke-direct {v2, v11, v11, v3, v4}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IILcom/google/android/maps/GeoPoint;I)V

    invoke-virtual {v0, v1, v2}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 318
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v1}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 320
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v0

    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 322
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMapFrame:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mapParams:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 323
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->invalidate()V

    .line 325
    invoke-direct {p0}, Lcom/htc/android/footprints/view/DetailView;->networkConnected()Z

    move-result v0

    if-nez v0, :cond_0

    .line 326
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 327
    new-instance v0, Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    .line 328
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    const v1, 0x7f0a0091

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 329
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    const v1, -0xcccccd

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 331
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    invoke-virtual {v0, v10, v9, v10, v9}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 332
    iget-object v6, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    iget-object v7, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    new-instance v0, Lcom/google/android/maps/MapView$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    const/16 v5, 0x33

    move v3, v8

    move v4, v8

    invoke-direct/range {v0 .. v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IIIII)V

    invoke-virtual {v6, v7, v0}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 336
    :cond_0
    return-void
.end method

.method private networkConnected()Z
    .locals 5

    .prologue
    .line 555
    const/4 v0, 0x1

    .line 556
    .local v0, connected:Z
    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    const-string v4, "connectivity"

    invoke-virtual {v3, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 559
    .local v1, connectivity:Landroid/net/ConnectivityManager;
    if-eqz v1, :cond_0

    .line 560
    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v2

    .line 561
    .local v2, info:Landroid/net/NetworkInfo;
    if-eqz v2, :cond_1

    invoke-virtual {v2}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v3

    sget-object v4, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v3, v4, :cond_1

    .line 569
    .end local v2           #info:Landroid/net/NetworkInfo;
    :cond_0
    :goto_0
    return v0

    .line 564
    .restart local v2       #info:Landroid/net/NetworkInfo;
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private openMapView()V
    .locals 0

    .prologue
    .line 501
    return-void
.end method

.method private showAddressPanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 461
    if-nez p1, :cond_0

    .line 462
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mAddressPanel:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 463
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mAddrDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 468
    :goto_0
    return-void

    .line 465
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mAddressPanel:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 466
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mAddrDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private showMapPanel(Z)V
    .locals 5
    .parameter "isShow"

    .prologue
    const/16 v4, 0x8

    const/4 v3, 0x0

    .line 434
    const v2, 0x7f0c0045

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 435
    .local v0, MapContainer:Landroid/view/ViewGroup;
    const v2, 0x7f0c0041

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 436
    .local v1, locationInfo:Landroid/view/ViewGroup;
    if-nez p1, :cond_1

    .line 437
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMapDiv:Landroid/widget/ImageView;

    if-eqz v2, :cond_0

    .line 438
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMapDiv:Landroid/widget/ImageView;

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 440
    :cond_0
    invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 441
    invoke-virtual {v1, v4}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 449
    :goto_0
    return-void

    .line 443
    :cond_1
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMapDiv:Landroid/widget/ImageView;

    if-eqz v2, :cond_2

    .line 444
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMapDiv:Landroid/widget/ImageView;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 446
    :cond_2
    invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 447
    invoke-virtual {v1, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_0
.end method

.method private showMediaPanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 491
    if-nez p1, :cond_0

    .line 492
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setVisibility(I)V

    .line 493
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 498
    :goto_0
    return-void

    .line 495
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setVisibility(I)V

    .line 496
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private showNotesPanel(Z)V
    .locals 2
    .parameter "isShow"

    .prologue
    .line 452
    const v1, 0x7f0c0047

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/view/DetailView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    .line 453
    .local v0, textBoxFrame:Landroid/widget/FrameLayout;
    if-nez p1, :cond_0

    .line 454
    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 458
    :goto_0
    return-void

    .line 456
    :cond_0
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto :goto_0
.end method

.method private showWebPanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 481
    if-nez p1, :cond_0

    .line 482
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mWebPanel:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 483
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mWebDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 488
    :goto_0
    return-void

    .line 485
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mWebPanel:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 486
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mWebDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private showphonePanel(Z)V
    .locals 3
    .parameter "isShow"

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 471
    if-nez p1, :cond_0

    .line 472
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mPhonePanel:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 473
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mPhoneDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 478
    :goto_0
    return-void

    .line 475
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mPhonePanel:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 476
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mPhoneDiv:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method


# virtual methods
.method public afterInitView()V
    .locals 8

    .prologue
    const/4 v7, -0x1

    const/16 v6, 0x140

    const/16 v5, 0x64

    const/4 v4, 0x0

    .line 163
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonAddress:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 164
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonPhone:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 165
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonWeb:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 166
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonLocation:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 168
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mAddressPanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    invoke-direct {v2, v4, v4, v6, v5}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->buttonAddress:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 170
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mPhonePanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    invoke-direct {v2, v4, v4, v6, v5}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->buttonPhone:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 172
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mWebPanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    invoke-direct {v2, v4, v4, v6, v5}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->buttonWeb:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 174
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mLocationPanel:Landroid/view/View;

    new-instance v1, Landroid/view/TouchDelegate;

    new-instance v2, Landroid/graphics/Rect;

    invoke-direct {v2, v4, v4, v6, v5}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->buttonLocation:Landroid/widget/ImageView;

    invoke-direct {v1, v2, v3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 177
    new-instance v0, Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mBalloonView:Landroid/widget/ImageView;

    .line 178
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mBalloonView:Landroid/widget/ImageView;

    const v1, 0x7f020097

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 179
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mBalloonView:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setClickable(Z)V

    .line 181
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v7, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mapParams:Landroid/widget/LinearLayout$LayoutParams;

    .line 183
    return-void
.end method

.method public checkConnectionText()V
    .locals 2

    .prologue
    .line 355
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/htc/android/footprints/view/DetailView;->networkConnected()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 356
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapView;->removeView(Landroid/view/View;)V

    .line 357
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->connectionFailedText:Landroid/widget/TextView;

    .line 359
    :cond_0
    return-void
.end method

.method public checkMediaControl()V
    .locals 2

    .prologue
    .line 345
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    if-eqz v0, :cond_0

    .line 346
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->checkAudioData(Lcom/htc/android/footprints/vo/Footprint;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 347
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setAudioData(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 352
    :cond_0
    :goto_0
    return-void

    .line 349
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v0}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->disableMediaControl()V

    goto :goto_0
.end method

.method public closeMediaControl()V
    .locals 1

    .prologue
    .line 339
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    if-eqz v0, :cond_0

    .line 340
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v0}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->closeMediaPanel()V

    .line 342
    :cond_0
    return-void
.end method

.method public getFootprint()Lcom/htc/android/footprints/vo/Footprint;
    .locals 1

    .prologue
    .line 277
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object v0
.end method

.method public getScrollView()Lcom/htc/android/footprints/view/HorizontalScrollView;
    .locals 1

    .prologue
    .line 265
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->scrollView:Lcom/htc/android/footprints/view/HorizontalScrollView;

    return-object v0
.end method

.method public handleVisibleItem()V
    .locals 6

    .prologue
    const/16 v5, 0x8

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 362
    const/4 v0, 0x1

    .line 363
    .local v0, noDetailInfo:Z
    const/4 v1, 0x1

    .line 365
    .local v1, noMoreInfo:Z
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_0

    .line 366
    invoke-direct {p0, v4}, Lcom/htc/android/footprints/view/DetailView;->showAddressPanel(Z)V

    .line 367
    const/4 v0, 0x0

    .line 368
    const/4 v1, 0x0

    .line 374
    :goto_0
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_1

    .line 375
    invoke-direct {p0, v4}, Lcom/htc/android/footprints/view/DetailView;->showphonePanel(Z)V

    .line 376
    const/4 v0, 0x0

    .line 377
    const/4 v1, 0x0

    .line 383
    :goto_1
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_2

    .line 384
    invoke-direct {p0, v4}, Lcom/htc/android/footprints/view/DetailView;->showWebPanel(Z)V

    .line 385
    const/4 v0, 0x0

    .line 386
    const/4 v1, 0x0

    .line 392
    :goto_2
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-static {v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->checkAudioData(Lcom/htc/android/footprints/vo/Footprint;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 393
    invoke-direct {p0, v4}, Lcom/htc/android/footprints/view/DetailView;->showMediaPanel(Z)V

    .line 394
    const/4 v0, 0x0

    .line 395
    const/4 v1, 0x0

    .line 401
    :goto_3
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v2, :cond_4

    .line 402
    invoke-direct {p0, v4}, Lcom/htc/android/footprints/view/DetailView;->showMapPanel(Z)V

    .line 403
    const/4 v0, 0x0

    .line 404
    const/4 v1, 0x0

    .line 410
    :goto_4
    if-eqz v0, :cond_5

    .line 411
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->infoFrame:Landroid/view/ViewGroup;

    invoke-virtual {v2, v5}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 417
    :goto_5
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    if-eqz v2, :cond_6

    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_6

    .line 418
    invoke-direct {p0, v4}, Lcom/htc/android/footprints/view/DetailView;->showNotesPanel(Z)V

    .line 419
    const/4 v1, 0x0

    .line 425
    :goto_6
    if-eqz v1, :cond_7

    .line 426
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->emptyFrame:Landroid/view/ViewGroup;

    invoke-virtual {v2, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 431
    :goto_7
    return-void

    .line 371
    :cond_0
    invoke-direct {p0, v3}, Lcom/htc/android/footprints/view/DetailView;->showAddressPanel(Z)V

    goto :goto_0

    .line 380
    :cond_1
    invoke-direct {p0, v3}, Lcom/htc/android/footprints/view/DetailView;->showphonePanel(Z)V

    goto :goto_1

    .line 389
    :cond_2
    invoke-direct {p0, v3}, Lcom/htc/android/footprints/view/DetailView;->showWebPanel(Z)V

    goto :goto_2

    .line 398
    :cond_3
    invoke-direct {p0, v3}, Lcom/htc/android/footprints/view/DetailView;->showMediaPanel(Z)V

    goto :goto_3

    .line 407
    :cond_4
    invoke-direct {p0, v3}, Lcom/htc/android/footprints/view/DetailView;->showMapPanel(Z)V

    goto :goto_4

    .line 414
    :cond_5
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->infoFrame:Landroid/view/ViewGroup;

    invoke-virtual {v2, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_5

    .line 422
    :cond_6
    invoke-direct {p0, v3}, Lcom/htc/android/footprints/view/DetailView;->showNotesPanel(Z)V

    goto :goto_6

    .line 429
    :cond_7
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->emptyFrame:Landroid/view/ViewGroup;

    invoke-virtual {v2, v5}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_7
.end method

.method public onClick(Landroid/view/View;)V
    .locals 14
    .parameter "target"

    .prologue
    const-wide v12, 0x412e848000000000L

    const-string v11, "android.intent.action.VIEW"

    .line 504
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->buttonPhone:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_1

    .line 505
    new-instance v2, Landroid/content/Intent;

    const-string v9, "android.intent.action.CALL"

    invoke-direct {v2, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 506
    .local v2, intent:Landroid/content/Intent;
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "tel:"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v10, v10, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-virtual {v2, v9}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 507
    const/high16 v9, 0x1000

    invoke-virtual {v2, v9}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 508
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 552
    .end local v2           #intent:Landroid/content/Intent;
    :cond_0
    :goto_0
    return-void

    .line 509
    :cond_1
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->buttonAddress:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_2

    .line 511
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v9, :cond_0

    .line 521
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    .line 524
    .local v0, geoAddr:Ljava/lang/StringBuffer;
    const-string v9, "geo:0,0?q="

    invoke-virtual {v0, v9}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v9

    const-string v10, "+"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v10, v10, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 525
    new-instance v7, Landroid/content/Intent;

    const-string v9, "android.intent.action.VIEW"

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-direct {v7, v11, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 526
    .local v7, myIntent:Landroid/content/Intent;
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {v9, v7}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 527
    .end local v0           #geoAddr:Ljava/lang/StringBuffer;
    .end local v7           #myIntent:Landroid/content/Intent;
    :cond_2
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->buttonLocation:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_3

    .line 529
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v9, :cond_0

    .line 532
    const-string v1, "geo:"

    .line 534
    .local v1, geoPos:Ljava/lang/String;
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    int-to-double v9, v9

    div-double v3, v9, v12

    .line 535
    .local v3, lat:D
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    int-to-double v9, v9

    div-double v5, v9, v12

    .line 536
    .local v5, lon:D
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, ","

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "?z="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const/16 v10, 0xf

    invoke-static {v10}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 537
    new-instance v7, Landroid/content/Intent;

    const-string v9, "android.intent.action.VIEW"

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-direct {v7, v11, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 539
    .restart local v7       #myIntent:Landroid/content/Intent;
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {v9, v7}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 540
    .end local v1           #geoPos:Ljava/lang/String;
    .end local v3           #lat:D
    .end local v5           #lon:D
    .end local v7           #myIntent:Landroid/content/Intent;
    :cond_3
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->buttonWeb:Landroid/widget/ImageView;

    if-ne p1, v9, :cond_0

    .line 541
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v9

    const/4 v10, 0x5

    if-lt v9, v10, :cond_0

    .line 543
    const-string v8, ""

    .line 544
    .local v8, uri:Ljava/lang/String;
    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v9

    const-string v10, "http:"

    invoke-virtual {v9, v10}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_4

    iget-object v9, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v9

    const-string v10, "https:"

    invoke-virtual {v9, v10}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_4

    .line 546
    const-string v8, "http://"

    .line 548
    :cond_4
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v10, v10, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 549
    new-instance v7, Landroid/content/Intent;

    const-string v9, "android.intent.action.VIEW"

    invoke-static {v8}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-direct {v7, v11, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 550
    .restart local v7       #myIntent:Landroid/content/Intent;
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {v9, v7}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0
.end method

.method public removeMap(Lcom/google/android/maps/MapView;)V
    .locals 2
    .parameter "map"

    .prologue
    .line 300
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMapFrame:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->removeView(Landroid/view/View;)V

    .line 301
    return-void
.end method

.method public scrollToTop()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 269
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->scrollView:Lcom/htc/android/footprints/view/HorizontalScrollView;

    invoke-virtual {v0, v1, v1}, Lcom/htc/android/footprints/view/HorizontalScrollView;->scrollTo(II)V

    .line 270
    return-void
.end method

.method public setCategory(Lcom/htc/android/footprints/vo/Category;)V
    .locals 0
    .parameter "category"

    .prologue
    .line 285
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->mCategory:Lcom/htc/android/footprints/vo/Category;

    .line 286
    return-void
.end method

.method public setFootprint(Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 0
    .parameter "footprint"

    .prologue
    .line 273
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 274
    return-void
.end method

.method public setLocationString(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "lat"
    .parameter "lon"

    .prologue
    .line 289
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->textLatitude:Ljava/lang/String;

    .line 290
    iput-object p2, p0, Lcom/htc/android/footprints/view/DetailView;->textLongitude:Ljava/lang/String;

    .line 291
    return-void
.end method

.method public setMapButton(Landroid/widget/ImageButton;)V
    .locals 5
    .parameter "button"

    .prologue
    const/4 v4, 0x0

    .line 294
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->mapButton:Landroid/widget/ImageButton;

    .line 295
    new-instance v0, Landroid/view/TouchDelegate;

    new-instance v1, Landroid/graphics/Rect;

    const/16 v2, 0x140

    const/16 v3, 0x1e0

    invoke-direct {v1, v4, v4, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V

    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mapButton:Landroid/widget/ImageButton;

    invoke-direct {v0, v1, v2}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mapTouchDelegate:Landroid/view/TouchDelegate;

    .line 296
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMapFrame:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mapTouchDelegate:Landroid/view/TouchDelegate;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 297
    return-void
.end method

.method public setPicture(Landroid/graphics/Bitmap;)V
    .locals 0
    .parameter "bmp"

    .prologue
    .line 281
    iput-object p1, p0, Lcom/htc/android/footprints/view/DetailView;->mPicture:Landroid/graphics/Bitmap;

    .line 282
    return-void
.end method

.method public updateViewAfterSwitch(Lcom/google/android/maps/MapView;)V
    .locals 6
    .parameter "map"

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 233
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->addressText:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 234
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->buttonAddress:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v3, :cond_3

    move v3, v4

    :goto_0
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 236
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->phoneText:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 237
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->buttonPhone:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    if-eqz v3, :cond_4

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_4

    move v3, v4

    :goto_1
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 239
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->webText:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 240
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->buttonWeb:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    if-eqz v3, :cond_5

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_5

    move v3, v4

    :goto_2
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 242
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->buttonLocation:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v3, :cond_6

    move v3, v4

    :goto_3
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 244
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->latText:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->textLatitude:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 245
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->lonText:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->textLongitude:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 247
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->textBox:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 248
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v2, v3}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setAudioData(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 251
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    const v3, 0x7f0c0080

    invoke-virtual {v2, v3}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 252
    .local v1, v:Landroid/widget/ImageView;
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    const v3, 0x7f0c0089

    invoke-virtual {v2, v3}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/SeekBar;

    .line 253
    .local v0, sbar:Landroid/widget/SeekBar;
    invoke-virtual {v1}, Landroid/widget/ImageView;->isEnabled()Z

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 254
    :cond_0
    invoke-virtual {v0}, Landroid/widget/SeekBar;->isEnabled()Z

    move-result v2

    if-nez v2, :cond_1

    invoke-virtual {v0, v4}, Landroid/widget/SeekBar;->setEnabled(Z)V

    .line 255
    :cond_1
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    invoke-virtual {v2}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->invalidate()V

    .line 257
    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v2, :cond_2

    .line 258
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/view/DetailView;->insertMap(Lcom/google/android/maps/MapView;)V

    .line 261
    :cond_2
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->invalidate()V

    .line 262
    return-void

    .end local v0           #sbar:Landroid/widget/SeekBar;
    .end local v1           #v:Landroid/widget/ImageView;
    :cond_3
    move v3, v5

    .line 234
    goto/16 :goto_0

    :cond_4
    move v3, v5

    .line 237
    goto/16 :goto_1

    :cond_5
    move v3, v5

    .line 240
    goto :goto_2

    :cond_6
    move v3, v5

    .line 242
    goto :goto_3
.end method

.method public updateViewBeforeSwitch()V
    .locals 7

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 187
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->titleText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 188
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mPicture:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 189
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->photoView:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mPicture:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 192
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mCategory:Lcom/htc/android/footprints/vo/Category;

    if-eqz v0, :cond_1

    .line 193
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->categroyData:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    :goto_0
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 194
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->categoryIcon:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/htc/android/footprints/view/DetailView;->mCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-static {v1, v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getCategoryIcon(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 198
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->rating:Landroid/widget/RatingBar;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mRate:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/widget/RatingBar;->setRating(F)V

    .line 200
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->textCreateDate:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->df:Ljava/text/DateFormat;

    new-instance v2, Ljava/util/Date;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-wide v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v2, v3, v4}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 201
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->textCreateTime:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->df_time:Ljava/text/DateFormat;

    new-instance v2, Ljava/util/Date;

    iget-object v3, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-wide v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v2, v3, v4}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v2}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 203
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->addressText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 204
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonAddress:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v1, :cond_3

    move v1, v6

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 206
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->phoneText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 207
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonPhone:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_4

    move v1, v6

    :goto_2
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 209
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->webText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 210
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonWeb:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_5

    move v1, v6

    :goto_3
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 212
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->buttonLocation:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v1, :cond_6

    move v1, v6

    :goto_4
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 214
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->latText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->textLatitude:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 215
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->lonText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->textLongitude:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 217
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->textBox:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 218
    iget-object v0, p0, Lcom/htc/android/footprints/view/DetailView;->mMediaControl:Lcom/htc/android/footprints/view/MediaControlPanelViewMode;

    iget-object v1, p0, Lcom/htc/android/footprints/view/DetailView;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/MediaControlPanelViewMode;->setAudioData(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 220
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->checkMediaControl()V

    .line 221
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->checkConnectionText()V

    .line 222
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->handleVisibleItem()V

    .line 224
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->invalidate()V

    .line 230
    return-void

    .line 193
    :cond_2
    const-string v1, ""

    goto/16 :goto_0

    :cond_3
    move v1, v5

    .line 204
    goto :goto_1

    :cond_4
    move v1, v5

    .line 207
    goto :goto_2

    :cond_5
    move v1, v5

    .line 210
    goto :goto_3

    :cond_6
    move v1, v5

    .line 212
    goto :goto_4
.end method
